package com.feditory.shop.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *======================================================
 * @see 	: FamousWholesaleShop
 * @author  : bgkang
 * @since 	: 2012. 7. 16.
 * @note    : 인기샵통계
 *======================================================
 * @update - 수정일, 수정자, 수정내용
 *
 *======================================================
 */
@Entity
@Table(name = "SH_FAMOUS_WHOLESALE_SHOP")
public class FamousWholesaleShop {

    /** 샵 seq */
    @Id
    @GeneratedValue(generator = "SQ_SH_FAMOUS_WHOLESALE_SHOP")
    @SequenceGenerator(name = "SQ_SH_FAMOUS_WHOLESALE_SHOP", initialValue = 1, allocationSize = 1, sequenceName = "SQ_SH_FAMOUS_WHOLESALE_SHOP")
    @Column(name = "ID")
    private long id;

    @Column(name = "RANKING", nullable = false)
    private int ranking;

    @Column(name = "WHOLESALE_SHOP_ID", length = 10, nullable = false)
    private String wholesaleShopId;

    public int getRanking() {
        return ranking;
    }

    public void setRanking(int ranking) {
        this.ranking = ranking;
    }

    public String getWholesaleShopId() {
        return wholesaleShopId;
    }

    public void setWholesaleShopId(String wholesaleShopId) {
        this.wholesaleShopId = wholesaleShopId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

}
